using System.Runtime.CompilerServices;
using Awaiter;

namespace Yoshi.Fb
{
    [IgnoreNamespace]
    public partial class FbDataStore : FbFileData
    {
        public FbUser User
        {
            get { return FbBaseUser; }
        }

        public FbAuth Auth
        {
            get { return FbBaseAuth; }
        }

        public void AuthenticateAw(Await awp)
        {
            if (!Authenticated)
                FbAuthenticateAw(awp);
            else
            {
                awp.Done();
            }
        }
    }
}